import fetch from '@/api';

// 年度查询
export function getYear(params){
    return fetch({
        method:'get',
        url:`/portCount/year`,
        params
    })
}
// 在港箱统计查询
export function getOnPort(params){
    return fetch({
        method:'get',
        url:`/portCount/onPort`,
        params
    })
}
// 一周内数据查询
export function getWeek(params){
    return fetch({
        method:'get',
        url:`/portCount/week`,
        params
    })
}
// 按天查询
export function getDay(params){
    return fetch({
        method:'get',
        url:`/portCount/day`,
        params
    })
}
// 查询货类
export function portCountCargoType(params) {
    return fetch({
        method:'get',
        url:`/portCount/cargoType`,
        params
    })
}
// 查询货物
export function portCountCargoName(params) {
    return fetch({
        method:'get',
        url:`/portCount/cargoName`,
        params
    })
}
